<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      <li v-for="item in list">{{ item }}</li>
    </ul>
    <ul>
      <li v-for="hobby in hobbies">{{ hobby.id }} -- {{ hobby.title }}</li>
    </ul>
    <div>学生信息:</div>
    <ul>
      <li v-for="(value, key, index) in student">{{index}} -- {{ key }} -- {{ value }}</li>
    </ul>
    <!-- 重复 -->
    <ul>
      <li v-for="n in 5">{{ n }} - 这是重复渲染的内容</li>
    </ul>
  </div>

  <script src="./libs/vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        list: [1, 2, 3, 4, 5],
        hobbies: [
          {
            id: 1,
            title: '吃饭'
          },
          {
            id: 2,
            title: '睡觉'
          }
        ],
        student: {
          stuNo: '001',
          name: '小明',
          age: 18,
          address: '四川成都'
        }
      }
    })
  </script>
</body>
</html>